package cn.yh.org.mapper;

import cn.yh.org.domain.Department;
import cn.yh.org.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {
    //通过id查询部门
    Department loadOne(Long id);
    //查询所有部门数据
    List<Department> loadAll();
     //新增
    void insert(Department department);
    //修改
    void update(Department department);
    //通过id删除数据
    void delete(Long id);
    //查询数据总条数
    Long queryCount();
    //分页查询
    List<Department> queryData(DepartmentQuery departmentQuery);
}
